package lab2.text13;

/**
 * Created by Administrator on 2017/10/25.
 */
public class School extends ComputerAverage {
    double []data;
     School(){
            }
     School(double []data){
                this.data=data;
            }
     @Override
     double averge(double[] data) {
                double sum=0;
                double averge;
                for(int i=0;i<data.length;i++){
                        sum+=data[i];
                    }
                averge=sum/data.length;
                return averge;
            }
}

